package com.service.impl;

import com.dao.impl.ReportDaoImpl;
import com.dao.intf.ReportDao;
import com.entity.Report;
import com.service.intf.ReportService;

import java.util.List;

public class ReportServiceImpl implements ReportService {
    ReportDao reportDao=new ReportDaoImpl();
    @Override
    public void addReport(Integer userId, String reportContent) {
        reportDao.addReport(userId,reportContent);
    }

    @Override
    public List<Report> queryReport() {
        return reportDao.queryReport();
    }
}
